From c377c557418ecbcecb5993e2e56f7a415afd40e8 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Mon, 30 Apr 2018 01:12:35 -0500 Subject: [PATCH] Fix warning in .Pro build by forcing HAVE_UNISTD I'm not sure if it's new in Qt 5.9, but it's trivial (I think) to fix and harmless. When building files like gzread and gzwrite, MacOS would complain that we were missing declarations to extremely well known system functions (write, close, read, seek, ...) Those live in , so we nudge the Makefile generator to trigger its inclusion for MacOS and Linux. --- GPSBabel.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPSBabel.pro b/GPSBabel.pro index c73807837..2642a6c95 100644 --- a/GPSBabel.pro +++ b/GPSBabel.pro @@ -135,7 +135,7 @@ HEADERS = \ INCLUDEPATH += zlib macx|linux { - DEFINES += HAVE_NANOSLEEP HAVE_LIBUSB HAVE_GLOB + DEFINES += HAVE_NANOSLEEP HAVE_LIBUSB HAVE_GLOB HAVE_UNISTD_H SOURCES += gbser_posix.cc JEEPS += jeeps/gpslibusb.cc INCLUDEPATH += jeeps -- 2.30.2